//
//  STMUserInfoViewController.m
//  StoreManagement
//
//  Created by centling on 16/5/31.
//  Copyright © 2016年 alfred. All rights reserved.
//

#import "STMUserInfoViewController.h"
#import "STMPwdModifyViewController.h"

@interface STMUserInfoViewController ()<UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *sellerNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *pwdModifyLabel;

@end

@implementation STMUserInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = MAINGRAYCOLOR;
    NSString *sellerName = [UserDefaultHandler getUserDetaultString:kSellerName];
    if ([sellerName isEqualToString:@"(null)"]) {
        sellerName = @"";
    }
    self.sellerNameLabel.text = sellerName;
    
    self.pwdModifyLabel.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(pushToPwdModifyVC)];
    [self.pwdModifyLabel addGestureRecognizer:tap];
}

- (void)pushToPwdModifyVC {
    STMPwdModifyViewController *vc = [[STMPwdModifyViewController alloc] init];
    [vc customNavigationTitle:@"修改密码"];
    [self.navigationController pushViewController:vc animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
